:root {
  --primary-text: #303133;
  --darker-fill: #E6E8EB;
  --base-fill: #F0F2F5;
  --large-radius: 4px;
  --darkder-border: #CDD0D6;
  --regular-color: #606266;
}

.h-flow-container svg {
  margin-bottom: -5px;
}

.h-flow-container {
  background: url('');
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.h-flow-node {
  font-size: 16px;
}


.h-flow-start-node,
.h-flow-end-node {
  box-shadow: 0 0 5px #62b200;
  border-radius: 31px;
  height: 50px;
  width: 50px;
  margin-top: 19px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  background: #62b200;
  color: white;
}

.h-flow-end-node {
  box-shadow: none;
  margin-left: 8px;
  background: #b7b7b7;
}

.h-flow-user-task-node {
  width: 50px;
  height: 50px;
  border-radius: 100px;
  margin-left: 10px;
  box-shadow: 0 0 6px #4b90de;

  background: #4b90de;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;

  color: white;

  line-height: 45px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-flow-user-task-node .icon {
  width: 30px;
  margin-top: 10px;
  height: 30px;
  pointer-events: none;
}

foreignObject {
  overflow: visible;
}


.h-flow-node-title {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-flow-gate-way-wrapper {
  width: 30px;
  height: 31px;
  background: white;
  border-radius: 50%;
  margin: 30px 0;
  padding-top: 5px;
}

.h-flow-gate-way {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 4px;
}

.h-flow-gate-way-end {
  background: var(--darkder-border);
  width: 18px;
  height: 18px;
  margin-left: 6px;
  margin-top: 1px;
}


.h-flow-gate-way-start {
  background: var(--regular-color);
}

.h-flow-end-node:before {
  content: '结束'
}

.h-flow-start-node .icon {
  width: 30px;
  pointer-events: none;
  height: 30px;
  margin-top: -2px;
}

.h-flow-label {
  width: 170px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  cursor: pointer;
  user-select: none;
}

.h-flow-gate-way-exclusive {
  box-sizing: border-box;
  border: 5px solid var(--regular-color);
  background: white;
}

.h-flow-gate-way-include {

}

.h-flow-edge-label-icon {
  font-size: 30px;
  width: 20px;
  pointer-events: none;
}

.h-flow-mini-map {
  width: 240px;
  height: 180px;
  padding: 0;
  margin: 0;
  border: 1px solid #f1f1f1;
}

.h-flow-mini-map-container {
  position: absolute;
  height: 200px;
  width: 250px;
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  border-radius: 4px;

  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-flow-mini-map-button {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 10;
  user-select: none;
}

.h-flow-mini-map-container-hidden .h-flow-mini-map {
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
}

.h-flow-mini-map-container-hidden {
  height: 40px;
  width: 48px;
}

.h-flow-toolbar-container {
  position: absolute;
  right: 265px;
  top: 10px;
  width: 50px;
  height: 109px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.h-flow-toolbar-container [code='redo'],
.h-flow-toolbar-container [code='undo'] {
  display: none;
}

.h-flow-empty-node {
  width: 30px;
  height: 30px;
  margin: 15px 5px;
  border: 2px solid #8bcbf5;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.h-flow-edge {
}

.h-flow-arrow-passed {
  fill: #000000
}

.end-gate-way-edge + * {
  fill: #070708;
}

.start-gate-way-edge + * {
  fill: #070708;
}

.start-gate-way-edge:hover {
  cursor: pointer;
  stroke: #67a6ff !important;
}

.start-gate-way-edge:hover + * {
  fill: #67a6ff !important;
}

.h-flow-formula-icon .icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.h-flow-formula-icon {
  background: #b2b2b2;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  padding: 3px;
  line-height: 0;
  border: 5px solid white;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.h-flow-formula-icon:hover {
  background: #67a6ff;
}

.h-flow-container-wrapper {
  position: relative;
}

.h-flow-editor-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  min-height: 130px;
  min-width: 240px;
  background: white;
  padding: 0 20px 20px 20px;
  max-width: 500px;
  z-index: 1000;
}

.h-flow-editor-tooltip-title {
  color: #1677ff;
  margin-top: 15px;
}

.h-flow-editor-tooltip-message {
  margin-top: 5px;
  word-wrap: break-word;
}

.h-flow-node-history-passed {
  color: white;
  background: #43cf7c;
  box-shadow: 0 0 5px #43cf7c;
}

.h-flow-node-end-history-passed {
  color: white;
  margin-top: 20px;
  margin-left: 10px;
}

.h-flow-gate-way-history-passed {
  border: 5px solid #43cf7c;
}

.h-flow-node-not-history-passed {
  color: white;
  background: #b7b7b7;
  box-shadow: 0 0 5px #b7b7b7;
}

.h-flow-node-current-active {
  background: #4b90de;
  box-shadow: 0 0 5px #4b90de;
  border: none;
}

.h-flow-side-history-passed {
  cursor: default;
  background: #43cf7c;
  stroke: #43cf7c;
}

.h-flow-side-current-active {
  stroke: #409EFF;
}

.h-flow-user-task-notify-label {
  text-align: center;
  font-size: 11px;
  color: #4b90de;
  user-select: none;
}

.h-flow-node-title {
  user-select: none;
  width: 120px;
  margin-left: -27px;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.h-flow-node-stop .icon {
  width: 24px;
}

.h-flow-node-stop {
  background: #ff7684;
  box-shadow: 0 0 5px #ff7684;
}